package edu.sctu.xialei.june.day20150608one.util;

import edu.sctu.xialei.june.day20150608one.appbean.PeopleAppbean;


public class BaoGuoDeth {
	
	private String weijin = "管制刀具   汽油";
	
	private PeopleAppbean peopleappbean;
	
	public BaoGuoDeth(PeopleAppbean peopleappbean){
		this.peopleappbean = peopleappbean;
	}
	
	

	public boolean chaBaoGuo(){
		boolean is_weijin = false;
		if(peopleappbean.isIs_baoguo()){
			if(weijin.contains(peopleappbean.getBaoguoname())){
				is_weijin = true;
			}
		}else{
			is_weijin = false;
		}
		return is_weijin;
	}
	
	

	public boolean chaWater(){
		boolean is_weijin = false;
		if(peopleappbean.isIs_water()){
			if(weijin.contains(peopleappbean.getWatername())){
				is_weijin = true;
			}
		}else{
			is_weijin = false;
		}
		
		return is_weijin;
	}

}
